﻿using Microsoft.Extensions.Hosting;

namespace VisionCloud.Web.Extensions
{
    public static class HostEnvironmentEnvExtensions
    {
        /// <summary>
        /// 是否本地开发环境
        /// </summary>
        /// <param name="hostEnvironment"></param>
        /// <returns></returns>
        public static bool IsLocal(this IHostEnvironment hostEnvironment)
        {
            return hostEnvironment.IsEnvironment("Local");
        }
    }
}
